<nav class="navbar navbar-inverse scoreshop-cates" role="navigation">
  <div class="container">
    <div class="navbar-header">
      <a class="navbar-brand" href="{:U('Scoreshop/index/index')}">积分商城</a>
    </div>
    <div class="collapse navbar-collapse navbar-collapse-example">
      <ul class="nav navbar-nav">
        <volist name="sub_menu.left" id="menu_l">
          <if condition="$menu_l['children']">
          <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="{$menu_l.href}">{$menu_l.title} <b class="caret"></b></a>
              <ul class="dropdown-menu" role="menu">
                <volist name="menu_l['children']" id="menu_children">
                  <li><a href="{$menu_children.href}">{$menu_children.title}</a></li>
                </volist>
              </ul>
          </li>
          <else />
            <li><a href="{$menu_l.href}">{$menu_l.title}</a></li>
          </if>
        </volist>
      </ul>
       <!-- 右侧的导航项目 -->
      <ul class="nav navbar-nav navbar-right">
        <volist name="sub_menu.right" id="menu_r">
          <li><a href="{$menu_r.href}">{$menu_r.title}</a></li>
        </volist>
      </ul>
    </div>
  </div>
</nav>